package com.settlement.system.model.entity.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;


/**
 * @author author
 */
@Data
public class BasePager<T> {

    @ApiModelProperty(value = "Map对象,查询条件")
    T model;

    /**
     * 第几页
     */
    @ApiModelProperty(value = "第几页")
    public Integer pageNum;

    /**
     * 条数（每一页的条数）
     */
    @ApiModelProperty(value = "每一页的条数")
    public  Integer pageSize;

    /**
     * 排序（升序、降序）
     */
    @ApiModelProperty(hidden = true)
    public  String orderBy;

    /**
     * 排序字段
     */
    @ApiModelProperty(hidden = true)
    public  String orderByField;

    public T getModel() {
        return model;
    }

    public void setModel(T model) {
        this.model = model;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getOrderByField() {
        return orderByField;
    }

    public void setOrderByField(String orderByField) {
        this.orderByField = orderByField;
    }

}
